package cn.yj.wx.pay.enrity;

import cn.yj.common.emums.PayFrom;

/**
 * 支付下单响应结果
 * @author 永健
 * @since 2021-09-22 17:55
 */
public class PayOrderResult  {

    private String code;

    private String message;

    /**
     * JSAPIPay/Native 该值为：prepay_id 的值
     * H5支付 该值为：h5_url 的跳转链接
     * Native 该值为：code_url 二维码链接
     */
    private String result;

    private PayFrom payType;

    private String outTradeNo;
    private String totalAmount;

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public PayOrderResult setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
        return this;
    }

    public String getTotalAmount() {
        return totalAmount;
    }

    public PayOrderResult setTotalAmount(String totalAmount) {
        this.totalAmount = totalAmount;
        return this;
    }


    public String getResult() {
        return result;
    }

    public PayOrderResult setResult(String result) {
        this.result = result;
        return this;
    }

    public PayFrom getPayType() {
        return payType;
    }

    public PayOrderResult setPayType(PayFrom payType) {
        this.payType = payType;
        return this;
    }

    public String getCode() {
        return code;
    }

    public PayOrderResult setCode(String code) {
        this.code = code;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public PayOrderResult setMessage(String message) {
        this.message = message;
        return this;
    }
}
